package cn.imnaer.service.rpc.feedback.impl;

import cn.imnaer.service.persistence.model.Feedback;
import cn.imnaer.service.persistence.model.Version;
import cn.imnaer.service.rpc.feedback.FeedbackComponentRpcApi;
import cn.imnaer.service.rpc.feedback.dao.FeedbackDaoImpl;
import cn.imnaer.service.rpc.feedback.dao.VersionDaoImpl;

public class FeedbackComponentRpcApiImpl implements FeedbackComponentRpcApi {

    public void feedback(Feedback feedback) {
       FeedbackDaoImpl.getInstance().insert(feedback,false);
    }
 
    public Version getVersion() {
       return  VersionDaoImpl.getInstance().getCurrentVersion();
    }

    public  Version  getSmallVersion(){
    	
    	return  VersionDaoImpl.getInstance().getSmallVersion();
    	
    }

}
